﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Data;

namespace CapaDatos
{
    public class Conexion
    {
        public static SqlConnection getConexion()
        {
            SqlConnection cn = null;
            try {
                cn = new SqlConnection();
                //cn.ConnectionString = @"Data Source=.;Initial Catalog=DesApli01;Integrated Security=True";
                cn.ConnectionString = @"Data Source=142.4.196.46;Initial Catalog=DesApli01;User ID=DesApli01;Password=Maila.120pq";
            }catch(Exception e){
                System.Console.Write("Error en la Conexion "+e.Message);
            }
            return cn;            
        }
    }
}
